package model

import "time"

type SSHConfig struct {
	ID          uint   `gorm:"primaryKey"`
	SSHHost     string `gorm:"size:100"`
	SSHPort     int
	SSHUser     string `gorm:"size:50"`
	AuthType    string `gorm:"size:20"`
	SSHPassword string `gorm:"size:255"`
	PrivateKey  string `gorm:"type:text"`
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

type DBConnection struct {
	ID          uint   `json:"id"`
	HospitalID  uint   `json:"hospitalId"`
	DBType      string `json:"dbType"`
	Host        string `json:"host"`
	Port        int    `json:"port"`
	Username    string `json:"username"`
	Password    string `json:"password"`
	Database    string `json:"database"`
	UseSSH      bool   `json:"useSSH"`
	SSHConfigID uint   `json:"sshConfigId"`
}